package entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品类别表
 * </p>
 *
 * @author hjj
 * @since 2023-02-28
 */
@Getter
@Setter
@TableName("tb_category")
@ApiModel(value = "Category对象", description = "商品类别表")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("类别id")
      @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    @ApiModelProperty("类别名称")
    @TableField("category_name")
    private String categoryName;

    @ApiModelProperty("类别图片")
    @TableField("category_img")
    private String categoryImg;

    @ApiModelProperty("类别下商品数量")
    @TableField("category_number")
    private Integer categoryNumber;

    @ApiModelProperty("启用状态")
    @TableField("category_status")
    private String categoryStatus;

    @ApiModelProperty("类别描述")
    @TableField("category_msg")
    private String categoryMsg;

    @ApiModelProperty("类别排序")
    @TableField("category_sort")
    private String categorySort;

    @ApiModelProperty("首页推荐")
    @TableField("category_rec")
    private String categoryRec;

    @ApiModelProperty("父级类别")
    @TableField("category_parent")
    private Integer categoryParent;

    @ApiModelProperty("类别创建时间")
    @TableField("category_created")
    private LocalDate categoryCreated;


}
